import React, { Component } from 'react'

export default class Login extends Component {
    login() {
        localStorage.setItem('isLogin', true)
    }
    render() {
        return (
            <div>
                <button onClick={() => this.login()}>login</button>
                <p>--- 点击可以登录，用来做权限的判断 ---</p>
            </div>
        )
    }
}
